package com.example.recyclerviewlearn;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.os.Handler;
import android.util.Log;

public class MainActivity_test_handler extends AppCompatActivity {
    private static final String TAG = "MainActivity_test_handl";

    private Handler mHandler = new Handler();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main_test_handler);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        mHandler.post(new Runnable() {
            @Override
            public void run() {
                Log.i(TAG, "run: liuxudong");
            }
        });
        Log.i(TAG, "onDestroy: ");
    }
}